
# while 1
print("="*80,end="")
col=0
while col<10:
    row=1
    while row<=col:
        print("{}*{}={:<4}".format(row,col,row*col),end="")
        row+=1
    print("")
    col+=1
print("="*80,end="")
print()


#九九乘法表(while 2)

print("="*80,end="")
print()
col=9
while col>0:
    row=1
    while row<=col:
        print("{}*{}={:<4}".format(row,col,row*col),end="")
        row+=1
    print("")
    col-=1
print("="*80,end="")
print()


#九九乘法表(while 3)

print("="*80,end="")
print()
col=9
while col>0:
    row=9
    while row>0:
        if row>col:
            print("        ",end="")
        else:
            print("{}*{}={:<4}".format(row,col,row*col),end="")
        row-=1
    print("")
    col-=1
print("="*80,end="")
print()


#九九乘法表(while 4)

print("="*80,end="")
print()
col=1
while col<10:
    row=9
    while row>0:
        if row>col:
            print("        ",end="")
        else:
            print("{}*{}={:<4}".format(row,col,row*col),end="")
        row-=1
    print("")
    col+=1
print("="*80,end="")
print()


